package com.accounting.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Resource entity. @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable {

	// Fields

	private Integer id;
	private String url;
	private String des;
	private Set roleResources = new HashSet(0);

	// Constructors

	/** default constructor */
	public Resource() {
	}

	/** minimal constructor */
	public Resource(Integer id, String url, String des) {
		this.id = id;
		this.url = url;
		this.des = des;
	}

	/** full constructor */
	public Resource(Integer id, String url, String des, Set roleResources) {
		this.id = id;
		this.url = url;
		this.des = des;
		this.roleResources = roleResources;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public Set getRoleResources() {
		return this.roleResources;
	}

	public void setRoleResources(Set roleResources) {
		this.roleResources = roleResources;
	}

}